<template>
	<!-- #ifndef APP-NVUE || MP-TOUTIAO -->
	<view class="uv-demo-block pt-80px">
		<uv-swiper :list="state.prizes.map(item=>item.img)" previousMargin="30" nextMargin="30" circular
			:autoplay="autoplay" radius="5" height='100' bgColor="none" imgMode="aspectFit" :current="current">
		</uv-swiper>
	</view>
	<!-- #endif -->
</template>

<script setup name='Lottery'>
	// 抽奖
	import {
		ref
	} from 'vue'

	const props = defineProps({
		state: {
			type: Object,
			default: () => ({})
		},
		autoplay: {
			type: Boolean,
			default: true
		},
		current: {
			type: [Number, String],
			default: 0
		}
	})
</script>

<style lang="scss">

</style>